package com.zhl.springboot_zipkin_study_web;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScans;

@EnableDiscoveryClient
@SpringBootApplication
//注意定义的接口如果不和启动类在同一个包路径下，需要加basePackages
@EnableFeignClients(basePackages = "com.zhl.springboot_zipkin_study_service_api.service")
@ComponentScans({@ComponentScan("com.zhl.springboot_zipkin_study_service_api.service")})
public class SpringbootZipkinStudyWebApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringbootZipkinStudyWebApplication.class, args);
    }

}
